#include <rtthread.h>
#include "E53_ST1.h"
#include "drv_lcd.h"


int main(void)
{
    E53_ST1_Data data;
    E53_ST1_Init();
    while(1)
    {
        E53_ST1_Read_Data(&data);

        lcd_show_string(5, 70,  24, "Please goto outdoor");
        lcd_show_string(5, 100, 24, "Longitude:%.5f     ", data.Longitude);
        lcd_show_string(5, 130, 24, "Latitude:%.5f    ", data.Latitude);
    
        rt_kprintf("\r\n******************************Longitude Value is  %.5f\r\n", data.Longitude);
        rt_kprintf("\r\n******************************Latitude Value is  %.5f\r\n", data.Latitude);
       
        rt_thread_mdelay(2000);
    }
}
